home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / CREOSOTE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-19  |  914 b   |  47 lines

  1. /* creosote.h */
  2.  
  3. #include <stdlib.h>
  4. #include <stddef.h>
  5. #include <stdio.h>
  6. #include <string.h>
  7. #include <errno.h>
  8. #include <sys/types.h>
  9.  
  10. #define CREOSOTE_HOST  "127.0.0.1"
  11. #define CREOSOTE_PORT  7739
  12. #define spew(x) spewMrCreosote(x)
  13.  
  14. #ifdef UNIX
  15. #include <unistd.h>
  16. #include <signal.h>
  17. #include <sys/wait.h>
  18. #include <sys/socket.h>
  19. #include <sys/un.h>
  20. #include <sys/ipc.h>
  21. #include <sys/sem.h>
  22. #include <netinet/in.h>
  23. #include <arpa/inet.h>
  24. typedef int         creosote_socket;
  25. typedef struct sockaddr_in SOCKADDR_IN;
  26. #endif
  27.  
  28. #ifdef WIN32
  29. #include <windows.h>
  30. #include <iostream.h>
  31. #include <winsock.h>
  32. typedef SOCKET      creosote_socket;
  33. #endif
  34.  
  35. struct MrCreosote
  36. {
  37.     char host[256];
  38.     int port;
  39.     creosote_socket socket;
  40.     SOCKADDR_IN serv_addr;
  41. };
  42.  
  43. /* Declarations */
  44. void closeMrCreosote();
  45. int initializeMrCreosote();
  46. void spewMrCreosote(char *msg);
  47.